/**
Date: 2025-08-13
Copyright (c) 2025 Industrial Software Feature Database
*/
import request from '@/utils/request';
// 业务场景列表
export function getDatabaseTypeList(data) {
  return request({
    url: '/isfd/database/type/management/list',
    method: 'post',
    data
  });
}

// 新增业务场景
export function addDatabaseType(data) {
  return request({
    url: '/isfd/database/type/management/add',
    method: 'post',
    data
  });
}

// 删除业务场景
export function deleteDatabaseType(id) {
  return request({
    url: `/isfd/database/type/management/${id}`,
    method: 'delete'
  });
}

// 业务场景详情
export function getDatabaseTypeDetail(params) {
  return request({
    url: '/isfd/database/type/management/detail',
    method: 'get',
    params
  });
}

// 修改业务场景
export function updateDatabaseType(data) {
  return request({
    url: '/isfd/database/type/management/update',
    method: 'post',
    data
  });
}

// 左侧树
export function getTreeList(param) {
  return request({
    url: `/isfd/database/type/management/tree`,
    method: 'get',
    params: param
  });
}